package com.wsd.dao;

import com.wsd.domain.RepaymentRecord;
import org.apache.catalina.LifecycleState;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RepaymentRecordMapper {
    int deleteByPrimaryKey(Long recordId);

    int insert(RepaymentRecord record);

    int insertSelective(RepaymentRecord record);

    RepaymentRecord selectByPrimaryKey(Long recordId);

    int updateByPrimaryKeySelective(RepaymentRecord record);

    int updateByPrimaryKey(RepaymentRecord record);

    /**
     * 根据客户编号查找还款信息
     *
     * @param customerId
     * @return
     */
    List<RepaymentRecord> selectRecordByCustomerId(@Param("customerId") long customerId);
}